nav#user-menu-dropdown.w-dropdown-list.dropdown-list.user-menu
  .w-row
    .w-col.w-col-4
      .fontweight-semibold.fontsize-smaller.u-marginbottom-10 = t('shared.menus.user.contributions_history')
      ul.w-list-unstyled.u-marginbottom-20
        li.lineheight-looser
          = link_to t('shared.menus.user.contributions_history_nav'), edit_user_path(current_user, anchor: :contributions), class: 'alt-link fontsize-smaller'
        li.w-hidden-main.w-hidden-medium.lineheight-looser
          = link_to  t('shared.menus.user.projects_created'), edit_user_path(current_user, anchor: :projects), class: 'alt-link fontsize-smaller'
        /li.lineheight-looser
          = link_to  t('shared.menus.user.activity'), edit_user_path(current_user, anchor: :feeds), class: 'alt-link fontsize-smaller'
      .fontweight-semibold.fontsize-smaller.u-marginbottom-10 Configurações
      ul.w-list-unstyled.u-marginbottom-20
        li.lineheight-looser
          = link_to t('shared.menus.user.about'), edit_user_path(current_user, anchor: :about_me), class: 'alt-link fontsize-smaller'
        li.lineheight-looser
          = link_to t('shared.menus.user.notifications'), edit_user_path(current_user, anchor: :notifications), class: 'alt-link fontsize-smaller'
        li.lineheight-looser
          = link_to t('shared.menus.user.access_address'), edit_user_path(current_user, anchor: :settings), class: 'alt-link fontsize-smaller'
        li.lineheight-looser
          = link_to t('shared.menus.user.banking'), edit_user_path(current_user, anchor: :billing), class: 'alt-link fontsize-smaller'
    .w-col.w-col-4.w-hidden-small.w-hidden-tiny
      .fontweight-semibold.fontsize-smaller.u-marginbottom-10 = t('shared.menus.user.project_contributions')
      - if current_user.contributed_projects.present?
        ul.w-list-unstyled.u-marginbottom-20
          - current_user.contributed_projects.limit(3).each do |project|
            li.u-marginbottom-10
              .w-row
                .w-col.w-col-3
                  = image_tag project.decorate.display_image, class: 'thumb small u-radius'
                .w-col.w-col-9
                  = link_to truncate(project.name), project_by_slug_path(project.permalink, ref: 'user_menu_my_contributions'), class: 'alt-link fontsize-smaller'
          li.u-margintop-20
            .w-row
              .w-col.w-col-6
                = link_to t('projects.index.see_all'), edit_user_path(current_user, anchor: :contributions), class: 'btn btn-terciary'
              .w-col.w-col-6
    .w-col.w-col-4.w-hidden-small.w-hidden-tiny
      .fontweight-semibold.fontsize-smaller.u-marginbottom-10 = t('shared.menus.user.projects_created')
      - if current_user.projects.present?
        ul.w-list-unstyled.u-marginbottom-20
          - current_user.projects.without_state('rejected').ordered.limit(3).each do |project|
            li.u-marginbottom-10
              .w-row
                .w-col.w-col-3
                  = image_tag project.decorate.display_image, class: 'thumb small u-radius'
                .w-col.w-col-9
                  = link_to truncate(project.name), edit_project_path(project, ref: 'user_menu_my_projects', anchor: 'home'), class: 'alt-link fontsize-smaller'
          li.u-margintop-20
            .w-row
              .w-col.w-col-6
                = link_to t('projects.index.see_all'), edit_user_path(current_user, anchor: :projects), class: 'btn btn-terciary'
              .w-col.w-col-6
  - if current_user.admin?
    .divider.u-marginbottom-20
    .fontweight-semibold.fontsize-smaller.u-marginbottom-10 Admin
    ul.w-list-unstyled.u-marginbottom-20
      - for menu, path in controller.menu do
        li.lineheight-looser
          = link_to menu, path, class: 'alt-link fontsize-smaller'

  .divider.u-marginbottom-20
  .fontsize-smallest
    = t('shared.menus.user.logged_as')
    span
      | &nbsp;
      span.fontweight-semibold= current_user.decorate.display_name
      | &nbsp;
      = link_to t('layouts.user.logout'), destroy_user_session_path, method: :delete, class: 'alt-link'

